package com.by.bean;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("字典")
public class Dict {
    @ApiModelProperty("id")
    int id;
    @NotBlank(message = "编码不能为空！")
    @ApiModelProperty("编码")
    String code;
    @ApiModelProperty("名称")
    @NotBlank(message = "name不能为空！")
    String name;
    @ApiModelProperty("父id")
    int pid;
    @ApiModelProperty("排序")
    int sorts;
}
